Skip to content

Fix generation of JSON path keyvalue() IDs#16482

Merged
electrum merged 1 commit intotrinodb:masterfrom
electrum:jsonpath
Mar 11, 2023
Merged

Fix generation of JSON path keyvalue() IDs#16482
electrum merged 1 commit intotrinodb:masterfrom
electrum:jsonpath

Conversation

@electrum
Copy link
Copy Markdown
Member

@electrum electrum commented Mar 10, 2023

Description

Previously, separate IDs were generated for each member.

Note that the tests pass without this fix due to an AssertJ bug that seems to cause the assertion comparisons not to work. This is fixed by upgrading AssertJ in #16420.

Release notes

(x) Release notes are required, with the following suggested text:

# General
* Fix generation of IDs for `keyvalue()` methods in [JSON path](json-path-language).
  Previously, separate IDs were generated for each member. ({issue}`16482`)

Comment thread core/trino-main/src/main/java/io/trino/json/PathEvaluationVisitor.java Outdated
@electrum electrum force-pushed the jsonpath branch 2 times, most recently from 974a796 to 1ed13b2 Compare March 10, 2023 23:58
@electrum electrum requested a review from kasiafi March 10, 2023 23:58
Previously, separate IDs were generated for each member.
@electrum electrum merged commit 9e11311 into trinodb:master Mar 11, 2023
@electrum electrum deleted the jsonpath branch March 11, 2023 04:28
@github-actions github-actions Bot added this to the 411 milestone Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants